package cn.wsalix.user.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import cn.anlaser.entity.CommonEntity;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "CONTACT")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
@Data
@EqualsAndHashCode(callSuper = false)
public class Contact extends CommonEntity {
	
	/**
	 * 真实姓名、年龄、出生地、籍贯、单位（职务）、手机（微信）号等基本情况，通过手机、微信、QQ
	 */
	private static final long serialVersionUID = 7245697631565191281L;
	private String nativePlace;// 籍贯
	private String realname;// 真实姓名
	private Date birthday;// 
	private String birthplace;
	private String permanentResidence;//常住地
	private String dept;//单位
	private String duty;	//职务
	private String wealth;//供需资源
	private String liking;//爱好
	private String phone;//手机
	private String weixin;//手机
	private String qq;//手机
	private String email;//电子邮箱
	
	
}